// 班级配置接口

import request from '@/utils/request'

export function queryTemplateBaseQuery(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/templateBaseQuery',
    method: 'post',
    data
  })
}
/**
 * 查询角色列表
 * @param {*} data
 */
export function queryUserRole(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysUserLogin/queryPage',
    method: 'post',
    data
  })
}
/**
 * 异步组织部门树
 */
export function getComAndOrgTree(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/orgInfo/queryOrgAndDep',
    method: 'post',
    data
  })
}
/**
 * 异步new企业部门树
 */
export function getNewTreeData(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/orgInfo/getOrgAndDepTreeByName',
    method: 'post',
    data
  })
}

/**
 * 班级设置获取详情
 */
export function classConfigGetData(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaDefinition/findClassConfiguration',
    method: 'post',
    data
  })
}
/**
 * 班级任务获取详情
 */
export function classToastGetData(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaTaskConfig/findConfig',
    method: 'post',
    data
  })
}
/**
 * 结课配置获取详情
 */
export function concludeGetData(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaGraduateConfig/findConfiguration',
    method: 'post',
    data
  })
}
/**
 * 班级设置操作
 */
export function classConfigUpdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaDefinition/classConfiguration',
    method: 'post',
    data
  })
}
/**
 * 班级任务设置操作
 */
export function classToastUpdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaTaskConfig/taskConfiguration',
    method: 'post',
    data
  })
}
/**
 * 结课配置操作
 */
export function concludeUpdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaGraduateConfig/graduationConfiguration',
    method: 'post',
    data
  })
}
/**
 * 查询资源列表
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaResources/queryPage',
    method: 'post',
    data
  })
}
/**
 * 查询结课证书
 */
export function GetjkzsList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/honorManage/query',
    method: 'post',
    data
  })
}
